import request from '@/utils/request'

// 查询我的收藏  -法律咨询列表
export function listCollectadvice(query) {
  return request({
    url: '/member/collectadvice/list',
    method: 'get',
    params: query
  })
}

// 查询我的收藏  -法律咨询详细
export function getCollectadvice(id) {
  return request({
    url: '/member/collectadvice/' + id,
    method: 'get'
  })
}

// 新增我的收藏  -法律咨询
export function addCollectadvice(data) {
  return request({
    url: '/member/collectadvice',
    method: 'post',
    data: data
  })
}

// 修改我的收藏  -法律咨询
export function updateCollectadvice(data) {
  return request({
    url: '/member/collectadvice',
    method: 'put',
    data: data
  })
}

// 删除我的收藏  -法律咨询
export function delCollectadvice(id) {
  return request({
    url: '/member/collectadvice/' + id,
    method: 'delete'
  })
}

// 导出我的收藏  -法律咨询
export function exportCollectadvice(query) {
  return request({
    url: '/member/collectadvice/export',
    method: 'get',
    params: query
  })
}